#pragma once

#if defined(WIN32)
#if defined(S_CORE_DLL)
#define S_CORE_EXPORT __declspec(dllexport)
#define MODULE_NAME "Core"
#else
#define S_CORE_EXPORT __declspec(dllimport)
#endif
#else
#if defined(S_CORE_DLL)
#define MODULE_NAME "Core"
#endif
#define S_CORE_EXPORT
#endif

#include "QbLogger.h"

//TODO module....
#define logTrace(module, format, ...) log_trace(format, ##__VA_ARGS__)
#define logDebug(module, format ,...)  log_debug(format, ##__VA_ARGS__)
#define logInfo(module, format, ...) log_info(format, ##__VA_ARGS__)
#define logWarn(module, format, ...) log_warning(format, ##__VA_ARGS__)
#define logError(module, format, ...) log_error(format, ##__VA_ARGS__)

#pragma warning(disable:4251)